import Iuserinfos from "./Iuserinddos";
import uermodel from "../usercontorlmodel/usermodel";
import api from "./api";
import {get,del,post} from './http'
import { AxiosPromise } from "axios";

class Userinfos implements Iuserinfos{
    query(params?: any): AxiosPromise<any> {
        return get(api.userinfos,params)
    }
    post(data: uermodel): AxiosPromise<any> {
        return post(api.userinfos,data)
    }
    del(id:number): AxiosPromise<any> {
        return del(api.userinfos+'/'+id)
    }
} 

export default new Userinfos()